.class Les/ck$b;
.super Ljava/lang/Object;
.source "GdtAdProvider.java"

# interfaces
.implements Lcom/qq/e/ads/nativ/NativeExpressAD$NativeExpressADListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Les/ck;->a(Landroid/content/Context;Landroid/view/ViewGroup;Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/b;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Landroid/view/ViewGroup;

.field final synthetic b:Lcom/estrongs/android/pop/app/ad/cn/AdType;

.field final synthetic c:Lcom/estrongs/android/pop/app/ad/cn/b;

.field final synthetic d:Les/ck;


# direct methods
.method constructor <init>(Les/ck;Landroid/view/ViewGroup;Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/b;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/ck$b;->d:Les/ck;

    iput-object p2, p0, Les/ck$b;->a:Landroid/view/ViewGroup;

    iput-object p3, p0, Les/ck$b;->b:Lcom/estrongs/android/pop/app/ad/cn/AdType;

    iput-object p4, p0, Les/ck$b;->c:Lcom/estrongs/android/pop/app/ad/cn/b;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onADClicked(Lcom/qq/e/ads/nativ/NativeExpressADView;)V
    .locals 2

    .line 1
    iget-object p1, p0, Les/ck$b;->d:Les/ck;

    iget-object v0, p0, Les/ck$b;->b:Lcom/estrongs/android/pop/app/ad/cn/AdType;

    iget-object v1, p0, Les/ck$b;->c:Lcom/estrongs/android/pop/app/ad/cn/b;

    invoke-virtual {p1, v0, v1}, Les/bk;->a(Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/b;)V

    return-void
.end method

.method public onADCloseOverlay(Lcom/qq/e/ads/nativ/NativeExpressADView;)V
    .locals 0

    return-void
.end method

.method public onADClosed(Lcom/qq/e/ads/nativ/NativeExpressADView;)V
    .locals 2

    .line 1
    iget-object p1, p0, Les/ck$b;->a:Landroid/view/ViewGroup;

    if-eqz p1, :cond_0

    invoke-virtual {p1}, Landroid/view/ViewGroup;->getChildCount()I

    move-result p1

    if-lez p1, :cond_0

    .line 2
    iget-object p1, p0, Les/ck$b;->a:Landroid/view/ViewGroup;

    invoke-virtual {p1}, Landroid/view/ViewGroup;->removeAllViews()V

    .line 3
    iget-object p1, p0, Les/ck$b;->a:Landroid/view/ViewGroup;

    const/16 v0, 0x8

    invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 4
    :cond_0
    iget-object p1, p0, Les/ck$b;->d:Les/ck;

    iget-object v0, p0, Les/ck$b;->b:Lcom/estrongs/android/pop/app/ad/cn/AdType;

    iget-object v1, p0, Les/ck$b;->c:Lcom/estrongs/android/pop/app/ad/cn/b;

    invoke-virtual {p1, v0, v1}, Les/bk;->b(Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/b;)V

    return-void
.end method

.method public onADExposure(Lcom/qq/e/ads/nativ/NativeExpressADView;)V
    .locals 0

    return-void
.end method

.method public onADLeftApplication(Lcom/qq/e/ads/nativ/NativeExpressADView;)V
    .locals 0

    return-void
.end method

.method public onADLoaded(Ljava/util/List;)V
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/qq/e/ads/nativ/NativeExpressADView;",
            ">;)V"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Les/ck$b;->a:Landroid/view/ViewGroup;

    invoke-virtual {v0}, Landroid/view/ViewGroup;->getVisibility()I

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Les/ck$b;->a:Landroid/view/ViewGroup;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 3
    :cond_0
    iget-object v0, p0, Les/ck$b;->a:Landroid/view/ViewGroup;

    invoke-virtual {v0}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v0

    if-lez v0, :cond_1

    .line 4
    iget-object v0, p0, Les/ck$b;->a:Landroid/view/ViewGroup;

    invoke-virtual {v0}, Landroid/view/ViewGroup;->removeAllViews()V

    .line 5
    :cond_1
    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/qq/e/ads/nativ/NativeExpressADView;

    if-eqz p1, :cond_2

    .line 6
    invoke-virtual {p1}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    if-eqz v0, :cond_2

    .line 7
    invoke-virtual {p1}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    .line 8
    instance-of v1, v0, Landroid/view/ViewGroup;

    if-eqz v1, :cond_2

    .line 9
    check-cast v0, Landroid/view/ViewGroup;

    invoke-virtual {v0}, Landroid/view/ViewGroup;->removeAllViews()V

    .line 10
    :cond_2
    iget-object v0, p0, Les/ck$b;->a:Landroid/view/ViewGroup;

    invoke-virtual {v0, p1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    .line 11
    invoke-virtual {p1}, Lcom/qq/e/ads/nativ/NativeExpressADView;->render()V

    .line 12
    iget-object v0, p0, Les/ck$b;->d:Les/ck;

    iget-object v1, p0, Les/ck$b;->b:Lcom/estrongs/android/pop/app/ad/cn/AdType;

    iget-object v2, p0, Les/ck$b;->c:Lcom/estrongs/android/pop/app/ad/cn/b;

    invoke-virtual {v0, v1, v2, p1}, Les/bk;->a(Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/b;Landroid/view/View;)V

    return-void
.end method

.method public onADOpenOverlay(Lcom/qq/e/ads/nativ/NativeExpressADView;)V
    .locals 0

    return-void
.end method

.method public onNoAD(Lcom/qq/e/comm/util/AdError;)V
    .locals 6

    if-nez p1, :cond_0

    .line 1
    iget-object p1, p0, Les/ck$b;->d:Les/ck;

    iget-object v0, p0, Les/ck$b;->b:Lcom/estrongs/android/pop/app/ad/cn/AdType;

    iget-object v1, p0, Les/ck$b;->c:Lcom/estrongs/android/pop/app/ad/cn/b;

    const/4 v2, -0x1

    const-string v3, "gdt-native no ad"

    invoke-virtual {p1, v0, v1, v2, v3}, Les/bk;->a(Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/b;ILjava/lang/String;)V

    goto :goto_0

    .line 2
    :cond_0
    iget-object v0, p0, Les/ck$b;->d:Les/ck;

    iget-object v1, p0, Les/ck$b;->b:Lcom/estrongs/android/pop/app/ad/cn/AdType;

    iget-object v2, p0, Les/ck$b;->c:Lcom/estrongs/android/pop/app/ad/cn/b;

    invoke-virtual {p1}, Lcom/qq/e/comm/util/AdError;->getErrorCode()I

    move-result v3

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "gdt-native "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Lcom/qq/e/comm/util/AdError;->getErrorMsg()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v4, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, v1, v2, v3, p1}, Les/bk;->a(Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/b;ILjava/lang/String;)V

    :goto_0
    return-void
.end method

.method public onRenderFail(Lcom/qq/e/ads/nativ/NativeExpressADView;)V
    .locals 4

    .line 1
    iget-object p1, p0, Les/ck$b;->d:Les/ck;

    iget-object v0, p0, Les/ck$b;->b:Lcom/estrongs/android/pop/app/ad/cn/AdType;

    iget-object v1, p0, Les/ck$b;->c:Lcom/estrongs/android/pop/app/ad/cn/b;

    const/4 v2, -0x1

    const-string v3, "gdt-native render fail"

    invoke-virtual {p1, v0, v1, v2, v3}, Les/bk;->a(Lcom/estrongs/android/pop/app/ad/cn/AdType;Lcom/estrongs/android/pop/app/ad/cn/b;ILjava/lang/String;)V

    return-void
.end method

.method public onRenderSuccess(Lcom/qq/e/ads/nativ/NativeExpressADView;)V
    .locals 0

    return-void
.end method
